package net.thxjj.mobileServer.dao;

import net.thxjj.mobileServer.util.ParameterMap;
import net.thxjj.sitermodel.Place;
import net.thxjj.sitermodel.Room;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomAndPlaceDao {

    List<Place> getPlaces(@Param("user_id")long user_id);
    List<Room> getRooms(@Param("place_id")long place_id);
    List<ParameterMap> getRoomTemplates();
    void insertPlace(Place placeBean);
    void insertRooms(List<Room> list);
    void deletePlaceByUserId(@Param("user_id")long user_id);
    void deleteRoomByPlaceId(@Param("place_id")long place_id);
    void deleteRoomRelationByRoomId(@Param("room_id")long room_id);
    List<String> getRoomRelations(@Param("room_id")long room_id);
}
